export const tableItem = [
  {
    prop: 'fileId',
    label: '文件ID',
    minWidth: 80,
  },
  {
    prop: 'userId',
    label: '用户ID',
    minWidth: 80,
  },
  {
    prop: 'fileName',
    label: '文件名',
    minWidth: 120,
  },
  {
    prop: 'fileType',
    label: '文件类型',
    minWidth: 100
  },
  {
    prop: 'storagePath',
    label: 'URL地址',
    minWidth: 150,
    slot: 'storagePathSlot',
  },
  {
    prop: 'isEncrypted',
    label: '是否加密',
    width: 80,
    slot: 'isEncryptedSlot',
  },
  {
    prop: 'encryptionKey',
    label: '加密密钥',
    width: 120,
  },
  {
    prop: 'createdAt',
    label: '上传时间',
    width: 180,
  }
]

export default () => {
  return {
    tableItem,
    elTableConfig: {
      tooltipOptions: {
        popperClass: 'lmw_popper',
        effect: 'light',
      },
      rowKey: 'fileId',
    },
    showIndex: false,
    showChoose: true,
    pagination: true,
  }
} 